home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global mnv, ppl, foes, advance, pwr, fxpath, shandlir
- if getAt(mnv, 1) > 1 then
- if (the keyCode > 124) and (the memberNum of sprite getAt(ppl, 1) < 46) then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if the keyCode = 126 then
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) - 17
- else
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if (the keyCode > 122) and (the memberNum of sprite getAt(ppl, 1) < 46) then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if sprite(getAt(ppl, 1)).flipH = 1 then
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) - 17
- else
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if getAt(mnv, 1) < 20 then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- setAt(mnv, 1, 1)
- end if
- end if
- end if
- else
- if the memberNum of sprite getAt(ppl, 1) < 82 then
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- end if
- end if
- if sprite 5 within getAt(ppl, 1) and (sprite(5).visible = 1) then
- sprite(5).visible = 0
- setAt(pwr, 1, getAt(pwr, 1) + 10)
- sound playFile 1, fxpath & "heart.aif"
- end if
- if shandlir > 0 then
- shandlir = shandlir - 1
- set the locV of sprite 4 to the locV of sprite 4 + 40
- set the locH of sprite 4 to the locH of sprite 4 - 20
- if shandlir = 4 then
- repeat with i = 2 to 4
- if sprite 4 intersects getAt(ppl, i) then
- setAt(pwr, i, getAt(pwr, i) - 20)
- if i = 2 then
- setAt(foes, 1, 94)
- chkhit(getAt(ppl, 2), 87, 94, 2, 1, 137)
- next repeat
- end if
- if i = 3 then
- setAt(foes, 2, 122)
- chkhit(getAt(ppl, 3), 116, 122, 3, 2, 138)
- next repeat
- end if
- if i = 4 then
- setAt(foes, 3, 285)
- chkhit(getAt(ppl, 4), 271, 280, 4, 3, 294)
- end if
- end if
- end repeat
- shandlir = 0
- set the memberNum of sprite 4 to 303
- end if
- end if
- if (advance = 13) or (advance = 14) then
- foemov(76, 77, 87, 94, 95, 8, 5, 2, 2, 1, 10, 3)
- foemov(103, 104, 116, 122, 123, 13, 7, 3, 3, 2, 9, 5)
- strata2(3)
- else
- if advance = 15 then
- foemov(261, 262, 271, 280, 287, 16, 5, 4, 4, 3, 10, 6)
- strata2(3)
- else
- if (advance = 16) or (advance = 17) then
- foemov(103, 104, 116, 122, 123, 13, 7, 3, 3, 2, 9, 5)
- foemov(261, 262, 271, 280, 287, 16, 5, 4, 4, 3, 10, 6)
- strata2(3)
- else
- strata2(3)
- end if
- end if
- end if
- end
-